package main
import "fmt"
func main(){
	var number int
	type fx func(int, int) int
	var hanshu fx
	hanshu = sum
	number = hanshu(5, 6)
	fmt.Printf("结果是：%d\n",number)
	
	hanshu = jian
	number = hanshu(5, 3)
	fmt.Printf("结果是：%d\n",number)
}

func sum(a, b int) int{
	return a + b
}

func jian(a, b int) int{
	return a - b
}
